package com.json.action;

import com.json.entity.Student;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class TestActionJson {

    @ResponseBody
    @RequestMapping("/hhh")
    public Student temp(){
        Student st = new Student();
        st.setName("jkl");
        st.setAge(9);
        return st;
    }

}
